package org.example.chat.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.sql.Timestamp;
import java.lang.String;
import java.lang.Integer;
import java.util.Date;

/**
 * 用户表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Data
@Table(value = "chat_user", dataSource = "chatDS")
public class ChatUserEntity {

    /**
     * 用户ID（UUID）
     */
    @Id(keyType = KeyType.Auto)
    private Long userId;

    /**
     * 用户名
     */
    @Column(value = "username")
    private String username;

    /**
     * 密码（BCrypt加密）
     */
    @Column(value = "password")
    private String password;

    /**
     * 头像URL
     */
    @Column(value = "avatar")
    private String avatar;

    /**
     * 邮箱
     */
    @Column(value = "email")
    private String email;

    /**
     * 手机号
     */
    @Column(value = "phone")
    private String phone;

    /**
     * 状态：0-离线, 1-在线, 2-隐身
     */
    @Column(value = "status")
    private Integer status;

    /**
     * 最后活动时间
     */
    @Column(value = "last_active")
    private Date lastActive;

    /**
     * 创建时间
     */
    @Column(value = "created_at")
    private Date createdAt;

    /**
     * 更新时间
     */
    @Column(value = "updated_at")
    private Date updatedAt;

    /**
     * 是否被禁言：0-否, 1-是
     */
    @Column(value = "muted")
    private Integer muted;

}
